package com.springboot.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.springboot.service.DemoService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
public class DemoController {

    @Resource
    private DemoService demoService;

    @RequestMapping("/")
    @ResponseBody
    public String index() {
        return demoService.sayHello("hhhhhhh");
    }

}
